package com.atguigu.daijia.order.testLock;

import com.atguigu.daijia.common.result.Result;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
@description:
@ClassName TestController
@author chen
@create 2024-09-10 21:52
@Version 1.0
*/
@RestController
@RequestMapping("/order/test")
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping("testLock")
    public Result<String> testLock() {
        testService.testLuaLock();
        return Result.ok();
    }
}
